package com.ruoyi.app.controller.business.audit;

import com.ruoyi.business.base.PageParam;
import com.ruoyi.business.order.domain.JbApprovalLog;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.web.controller.business.order.factory.JbApprovalLogFactory;
import com.ruoyi.web.core.JoController;
import com.ruoyi.web.core.JoR;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * APP 审批日志 Controller
 *
 * @author Jyl
 */
@RestController
@RequestMapping("/app/approval_log")
public class AppApprovalLogController extends JoController
{
    @Autowired
    private JbApprovalLogFactory jbApprovalLogFactory;

    /**
     * 查询审批日志（针对退款、退款等各个状态操作记录）列表
     */
    @ApiOperation("查询审批日志（针对退款、退款等各个状态操作记录）列表")
    @GetMapping("/list")
    public TableDataInfo logList(PageParam page, JbApprovalLog jbApprovalLog)
    {
        return JoR.rows(jbApprovalLogFactory.list(page, jbApprovalLog));
    }

}
